import requests

resp1 = requests.post(url="http://ihrm-test.itheima.net/api/sys/user",
                      headers={"Authorization": "68d680ed-043f-4cee-b3b3-33db923145da"},
                      json={"username": "小鱼a",
                            "mobile": "13831743331",
                            "workNumber": "272215"})
print(resp1.json())

resp2 = requests.get(url="http://ihrm-test.itheima.net/api/sys/user/" + "1495298172090703872",
                     headers={"Authorization": "2ac48edb-da6f-4b9a-b410-ecbbcbb79aa7"})
# print(resp2.json())

resp3 = requests.put(url="http://ihrm-test.itheima.net/api/sys/user/" + "1495298172090703872",
                     headers={"Authorization": "2ac48edb-da6f-4b9a-b410-ecbbcbb79aa7"},
                     json={"username":"唐小宝"})
# print(resp3.json())

# resp4 = requests.delete(url="http://ihrm-test.itheima.net/api/sys/user/" + "1495298172090703872",
#                      headers={"Authorization": "2ac48edb-da6f-4b9a-b410-ecbbcbb79aa7"})
# print(resp4.json())  ????